# $Id: PKGBUILD 80369 2012-11-21 04:04:30Z jconder $
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Camille Moncelier <pix@devlife.org>

pkgname=linuxtv-dvb-apps
pkgver=1486
pkgrel=1
_hgrev=3fc7dfa68484
pkgdesc='Viewer programs for DVB cards'
arch=('i686' 'x86_64')
url='http://www.linuxtv.org/'
license=('GPL')
source=("http://linuxtv.org/hg/dvb-apps/archive/$_hgrev.tar.bz2")
sha256sums=('60cfd45fe7417a4445a7814ce6e645ddaad0f8e934015c09d53eb93c8739b35a')

build() {
  cd "dvb-apps-$_hgrev"
  rm -rf include

  make -C lib
  make -C util
}

package() {
  cd "dvb-apps-$_hgrev"

  make -C lib DESTDIR="$pkgdir" install
  make -C util DESTDIR="$pkgdir" install

  chmod 755 "$pkgdir"/usr/lib/*.so*
}
